#ifndef PLAYBACKWIDGET_H
#define PLAYBACKWIDGET_H

#include <QtGui/QWidget>

#include <Phonon>

using namespace Phonon;

class QPushButton;

class PlaybackWidget : public QWidget
{
    Q_OBJECT

public:
    PlaybackWidget(QWidget *parent = 0);
    ~PlaybackWidget();
public:
    void setMediaUrl(QUrl aUrl);
public slots:
	void setLocalUrl();
	void setRemoteUrl();
	void stateChanged ( Phonon::State newstate, Phonon::State oldstate );
private:
	QString stateToString(Phonon::State aState);
public:
    VideoWidget* m_videoWidget;
    MediaObject *m_media;
    
    QPushButton* m_playButton;
    QPushButton* m_pauseButton;
    QPushButton* m_stopButton;
    QPushButton* m_hideButton;
};

#endif // PLAYBACKWIDGET_H
